
#include<iostream>
//using namespace std;
//#include<string.h>
#include"string.h"


void Test_string1()
{
	bai::string s1("hello ");
	bai::string s2("");
	s1.resize(10, 'a');
	cout << s2.empty();
}

void Test_string2()
{
	bai::string s1("hello bai");
	bai::string::iterator it = s1.begin();
	while (it != s1.end())
	{
		cout << *it << " ";
		it++;
	}
}

void Test_string3()
{
	bai::string s1("hello bai");
	bai::string s2("hello bai");
	s1.push_back('a');
	s1.push_back('b');
	s1.push_back('c');
	s1.push_back('d');
	s2.append(" you are good!");

	s1 += 'f';
	s2 += " wasai";
}

void Test_string4()
{
	bai::string s1("hello bai");
	s1.insert(0, 'a');
	bai::string s2("hello");
	s2.insert(0, "aaaaa");
	cout << s1.c_str() << endl;
	cout << s2.c_str() << endl;
	s1.erase(0, 2);
	cout << s1.c_str() << endl;

	cout<<(s1 < s2)<<endl;
	cout << (s1 > s2) << endl;
	cout << (s1 == s2) << endl;
	cout << (s1 != s2) << endl;
	
	cout << s1 << endl;
	bai::string s;
	
}

void Test_string7()
{
	bai::string s;
	cin >> s;
	cout << s << endl;

	cin >> s;
	cout << s << endl;

	//char buff[128];
	//for (size_t i = 0; i < 5; i++)
	//{
	//	cin >> buff[i];
	//}

	//for (size_t i = 0; i < 5; i++)
	//{
	//	cout << buff[i] << endl;
	//}
}
int main()
{
	
	Test_string7();

	return 0;
}